using System;
using System.Reflection;
using rlTodayMakeSkin.Project.XmlElement;

namespace rlTodayMakeSkin.Project.Attributes
{
    /// <summary>
    /// Describes a property that represents a xml sub element.
    /// </summary>
    public class CompositePropertyAttribute : PropertyDescriptionAttribute
    {
        private Type propertyType;

        public CompositePropertyAttribute(string description, Type propType) : base(description, PropertyTypes.COMPOSITE)
        {
            propertyType = propType;
        }

        public CompositePropertyAttribute(string description, Type propType, SupportedVersion version)
            : base(description, PropertyTypes.COMPOSITE, version)
        {
            propertyType = propType;
        }


        /// <summary>
        /// Gets object type of this property
        /// </summary>
        public Type PropertyCompositeType
        {
            get { return propertyType; }
        }
    }
}
